package com.oocl.o2o.client.schedule.impl;

import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.oocl.o2o.client.dao.OrderInfoDao;
import com.oocl.o2o.client.schedule.LoadOrderInfoSchedule;

@Component
public class LoadOrderInfoScheduleImpl implements LoadOrderInfoSchedule{

	@Resource
	private OrderInfoDao orderInfoDao;
	@Scheduled(cron="0/5 * *  * * ? ")
	@Override
	@Transactional
	public void loadOrderInfo() {
		orderInfoDao.autoCommitInfo();
	}

}
